Whatthisbookcovers
Thisbookisuptodateforthe2.4releaseandiscompatiblethroughthe4.0releaseaswell,and
itdoesnothaveanycodebasedonthebetaorreleasecandidates.
Chapter1,StrategiesforUpgradingtoAngular2,isanoverviewofanumberofwaysto
migrateanAngular1applicationtoAngular2.Althoughthereisnoone-size-fits-allupgrade
strategy,youwillfindthattheserecipesdemonstratesomewaysthatwillallowyoutopreservea
largeamountofyourexistingAngular1codebase.
Chapter2,ConqueringComponentsandDirectives,givesabroadanddeepsetofexamples
involvingwhatAngular2componentsareandhowtousethem.Angular2applicationsarebuilt
entirelyofcomponents,andthischapteroffersyouatotalrundownoftheirrole.
Chapter3,BuildingTemplate-DrivenandReactiveForms,coversthereworkedAngular2form
modules.Angular2offersyoutwoprimarystylesoferectingformfeatures,andthischapter
coversbothofthemindepth.
Chapter4,MasteringPromises,showshowthePromiseobjecthasaroleinAngular2.Although
RxJShassubsumedsomeoftheusefulnessofPromises,theyarestillfirst-classcitizensinES6
andstillplayacrucialrole.
Chapter5,ReactiveXObservables,givesyouacrashcourseinhowAngular2hasembraced
reactiveprogramming.ItincludesrecipesthatdemonstratethebasicsofObservablesand
Subjects,aswellasadvancedimplementationsthattakeRxJStoitslimits.
Chapter6,TheComponentRouter,takesyouthroughthetotallyreworkedroutingmodulein
Angular2.Itcoversbothroutingbasicsaswellasanarrayofadvancedroutingconceptsunique
toAngular2.
Chapter7,Services,DependencyInjection,andNgModule,describesthenewandimproved
dependencyinjectionandmodulestrategiesofAngular2.Itgivesyouallthepiecesyouneedto
breakyourapplicationintoindependentservicesandmodules,aswellasidealstrategiesfor
connectingthosepiecestogether.
Chapter8,ApplicationOrganizationandManagement,isabroadoverviewofhowyoucan
manageyourAngular2applicationinsideandoutsidetheclient.Angular2introducesanumber
oflayersofcomplexitythatrequireadvancedtooling,andthischapterwillguideyouthroughhow
toapproachthem.
Chapter9,Angular2Testing,willguideyouthroughbothhowtosetuptestsuitesforAngular2
aswellashowtowritevarioustypesoftestsforthesesuites.Manydevelopersavoidtesting
whenlearningaframeworkanew,andthischaptergentlyguidesyouthroughAngular2'sexcellent